how to calculate charge on polyatomic ions